﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BizModels.Common
{
    public class SearchObjT
    {
        public int PageIndex
        {
            get
            {
                return _pageIndex == 0 ? 1 : _pageIndex;
            }
            set
            {
                _pageIndex = value;
            }
        }
        private int _pageIndex;

        public int PageSize
        {
            get
            {
                return _pageSize == 0 ? Int32.MaxValue  : _pageSize;
            }
            set
            {
                _pageSize = value;
            }
        }
        private int _pageSize;
    }
}
